package com.hsw.habit.service;

import com.hsw.habit.model.TaskItem;
import com.hsw.habit.model.bean.ListResponse;

import java.util.List;

public interface TaskService {

    ListResponse<TaskItem> findTaskByParams(TaskItem taskItem);

    ListResponse<TaskItem> findTaskByType(Integer userId,Integer startRow,Integer type);

    TaskItem findTaskItemById(Long id);

    boolean updateById(TaskItem taskItem);

    boolean deleteById(Long id);

    boolean addItemByParams(TaskItem taskItem);
}
